#ifndef _DEV_PIPE_H_
#define _DEV_PIPE_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <types.h>
#include "device.h"
#include "netcore.h"

struct pipe_cfg
{
    char        lpath[108];
    char        rpath[108];
};

struct pipe_peer
{
    char        peer_name[108];
};

struct pipe_device
{
    struct device       dev;
    struct pipe_cfg     cfg;
    struct pipe_peer    peer;
};

int pipe_dev_add(const char *name, const struct pipe_cfg *cfg);
void pipe_dev_del(device_t *dev);

#ifdef __cplusplus
}
#endif
#endif
